const app = getApp()

Page({
  data: {
    problems: []
  },

  initQuestion() {
    app.sendGetRequest('/community/service/problems/list', (res) => {
      console.log(res)
      let problems = res.rows
      this.setData({
        problems
       })
    }, (err) => {
      console.log(err.errMsg)
    })
  },

  onLoad: function (options) {
    this.initQuestion()
  }
})